import request from '@/utils/request'
const api_name = '/eduservice/coursefront'
export default {
  getCourseList(page, limit, searchObj) {
    return request({
      url: `${api_name}/getCourseFrontList/${page}/${limit}`,
      data: searchObj,
      method: 'post'
    })
  },
  getAllSubject() {
    return request({
      url: `/eduservice/subject/getAllSubject`,
      method: 'get'
    })
  },
  // 课程详情
  getById(courseId) {
    return request({
      url: `${api_name}/getCourseFrontInfo/${courseId}`,
      method: 'get'
    })
  }
}